﻿using ServerListerner.Model;

using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace ServerListerner.Connections
{
    public interface IHTTPConnection:IDisposable
    {
        Action<IHTTPConnection, HTTPRequest> OnReceived { get; set; }
        //Action<HTTPConnection, Exception> OnError { get; set; }
        //Action<HTTPConnection> OnClosed { get; set; }
        EndPoint? RemoteEndPoint { get; }
        void Send(string Message,Dictionary<string, string> Header = null);
    }
}
